package com.rs.game.player.dialogues;

import com.rs.game.WorldTile;
import com.rs.game.player.Skills;
import com.rs.game.player.content.Magic;

public class Monster extends Dialogue {

	public void start() {
		sendOptionsDialogue("Dungeons", "Slayer Dungeons", "Fremennik Dungeon", "Revenant Cave", "Tolna's Rift", "More");
	}

	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			switch (componentId) {
			case OPTION_1:
				sendOptionsDialogue("Slayer Dungeons", "Slayer Tower", "Ancient Cavern", "Back");
				stage = 1;
				break;
			case OPTION_2:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2808, 10002, 0));
				break;
			case OPTION_3:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3071, 3649, 0));
				break;
			case OPTION_4:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3297, 9824, 0));
				break;
			case OPTION_5:
				sendOptionsDialogue("Dungeons", "Ice Strykwyrms", "Grotworms Lair", "Tormented Demons", "Frost Dragons", "More");
				stage = 2;
				break;
			}
			break;
		case 1:
			switch (componentId) {
			case OPTION_1:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3429, 3534, 0));
				break;
			case OPTION_2:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1738, 5312, 1));
				break;
			case OPTION_3:
				sendOptionsDialogue("Dungeons", "Slayer Dungeons", "Fremennik Dungeon", "Revenant Cave", "Tolna's Rift", "More");
				stage = -1;
				break;
			}
			break;
		case 2:
			switch (componentId) {
			case OPTION_1:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3422, 5668, 0));
				break;
			case OPTION_2:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1205, 6372, 0));
				break;
			case OPTION_3:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2571, 5734, 0));
				break;
			case OPTION_4:
				if (player.getSkills().getLevelForXp(Skills.DUNGEONEERING) >= 85) {
					Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1298, 4509, 0));
				} else {
					end();
					player.getPackets().sendGameMessage("You must have level 85 dungeoneering to access these.");
				}
				break;
			case OPTION_5:
				sendOptionsDialogue("Dungeons", "Taverly Dungeon", "Hillgiant Cave", "Back");
				stage = 3;
				break;
			}
			break;
		case 3:
			switch (componentId) {
			case OPTION_1:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2883, 9800, 0));
				break;
			case OPTION_2:
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3117, 9853, 0));
				break;
			case OPTION_3:
				sendOptionsDialogue("Dungeons", "Slayer Dungeons", "Fremennik Dungeon", "Revenant Cave", "Tolna's Rift", "More");
				stage = -1;
				break;
			}
			break;
		}
	}

	public void finish() {
	}

}